import { defineConfig } from 'vite'
import { resolve } from 'path'
import react from '@vitejs/plugin-react'
import alias from '@rollup/plugin-alias'

// https://vitejs.dev/config/
export default defineConfig({
  base: '/wanxiang/app2/',
  plugins: [
    alias({
      entries: [
        { find: 'common', replacement: resolve(__dirname, '../common') }
      ]
    }),
    react()
  ],
  server: {
    port: 3002,
  }
})
